package com.designpattern.behavior.strategy;

/**
 * @author Administration
 * @date 2021/10/21 - 10:14 - 星期四
 * @project lambda
 * @package com.designpattern.behavior.strategy
 * @by 晨
 */
public class test {
    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.salesManShow();

        System.out.println("===================");

        salesMan.setStrategy(new StrategyB());
        salesMan.salesManShow();

        System.out.println("=============");
        salesMan.setStrategy(new StrategyC());
        salesMan.salesManShow();
    }
}
